package com.github.pig.admin.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * <p>
 * 用户角色表
 * </p>
 *
 * @author lengleng
 * @since 2017-10-29
 */
@Data
@Table(name="sys_user_role")
public class SysUserRole implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
	@Column(name="user_id")
	private Integer userId;
    /**
     * 角色ID
     */
	@Column(name="role_id")
	private Integer roleId;

	@Column(name="type")
	private String type;


	@Override
	public String toString() {
		return "SysUserRole{" +
			", userId=" + userId +
			", roleId=" + roleId +
			"}";
	}
}
